<%--
  Created by IntelliJ IDEA.
  User: Adam
  Date: 2022/3/10
  Time: 12:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<!--开启EL表达式-->
<html>
<head>
    <title>Title</title>
</head>
<body>


<p>提交参数给controller</p>

<form action="/ch03-receiveparam/user/receiveproperty.do" method="post">
    姓名：<input type="text" name="name"> <br>
    年龄：<input type="text" name="age"> <br>
    <input type="submit" value="提交参数">
</form>

<p>请求参数名和处理器方法的形参名不一样，使用@RequestParam注解接受参数</p>
<form action="/ch03-receiveparam/user/receiveparam.do" method="get">
    姓名：<input type="text" name="cname"> <br>
    年龄：<input type="text" name="cage"> <br>
    <input type="submit" value="提交参数">
</form>

<p>使用java对象接受请求参数</p>
<form action="/ch03-receiveparam/user/receiveobject.do" method="post">
    姓名：<input type="text" name="name"> <br>
    年龄：<input type="text" name="age"> <br>
    <input type="submit" value="提交参数">
</form>

</body>
</html>
